package com.ffzx.commerce.framework.constant;

/**
 * 公共常量类
 * 
 * @author zhugj
 * @date 2016年1月15日 下午2:35:06
 * @version 0.1.0 
 */
public final class Constant {
	/**
	 * 删除标识符 1 删除 0没有删除
	 */
	//删除标记（0：正常；1：删除；）
	public static final String DELTE_FLAG = "delFlag";
	public static final String DELTE_FLAG_YES = "1";
	public static final String DELTE_FLAG_NO = "0";
	
	/**
	 * 禁用启用标识符 1禁用 0启用
	 */
	public static final String ACT_FLAG = "actFlag";
	public static final String ACT_FLAG_YES = "0";
	public static final String ACT_FLAG_NO = "1";
	
	/**
	 * 是否显示标记（1显示0掩藏）
	 */
	public static final String MENU_ISSHOW = "isShow";
	public static final String MENU_SHOW = "1";
	public static final String MENU_HIDE = "0";
    
	/**
	 * 性别(男:male,女:female)
	 */
	public static final String GENDER_MALE="male";
	public static final String GENDER_FEMALE="female";
	
	/*****
	 * 优惠券状态（0未生效，1已生效，2已过期）
	 */
	public static final String STATUS_UNEFFECT="0";
	public static final String STATUS_EFFECT="1";
	public static final String STATUS_OVERDUR="2";
		
	/*******
	 * 优惠券有效期（1:指定有效期，0:自定义有效期）
	 */
	public static final String DATE_FIXED="1";
	public static final String DATE_CUSTOM="0";
	
	/*****
	 * 优惠券选择商品（0全部商品，2指定商品，3指定商品类目）
	 */
	public static final String COMM_ALL="0";
	public static final String COMM_FIXED="2";
	public static final String COMM_CATEGORY="3";
	
	/*****
	 * 优惠券发放方式（0系统推送,1用户领取,2指定用户）
	 */
	public static final String GRANT_SYS="0";
	public static final String GRANT_USERREC="1";
	public static final String GRANT_FIXEDUSER="2";
	/*****
	 * 优惠券发放类型（0商品，1注册，2分享）
	 */
	public static final String GRANT_COMM="0";
	public static final String GRANT_REG="1";
	public static final String GRANT_SHARE="2";
	/*****
	 * 优惠券领取状态（0未开始,1领取中,2领取完成,3,已结束）
	 */
	public static final String REC_UNSTART="0";
	public static final String REC_ING="1";
	public static final String REC_SUCCESS="2";
	public static final String REC_END="3";
	/** 是;优惠券其他限制（1有限制）;
	 * 优惠券领取（1暂停领取）；
	 * 优惠券使用状态（1使用）
	 */
	public static final String YES = "1";
	/** 否 ;
	 * 优惠券其他限制（0没有限制）;
	 * 优惠券领取（0不暂停领取）；
	 * 优惠券使用状态（0未使用）*/
	public static final String NO = "0";
	/**错误代码*/
	public static final String CODE = "code";
	/**错误信息*/
	public static final String MSG = "msg";
	/**错误代码*/
	public static final String SUCCESS = "success";
	/**错误代码*/
	public static final String ERROR_CODE = "error_code";
	/**错误代码*/
	public static final String ERROR_MSG = "error_msg";
	/**默认日期格式*/
	public static final String DEFAULT_DATA_FORMAT = "yyyy-MM-dd HH:mm:ss";
	/**响应内容类型*/
	public static final String RESPONSE_CONTENT_TYPE = "application/json;charset=utf-8";

	/**当前用户的所有授权功能(set<功能路径>)*/
	public static final String PERSONAL_PERMISSION = "personPermission";
	/**当前用户的所有授权功能(String","拼接起来)*/
	public static final String PERSONAL_PERMISSION_STRING = "personPermissionString";
	/**当前用户的所有授权功能(Map<ID,功能路径>)*/
	public static final String PERSONAL_PERMISSION_MAP = "personPermissionMap";
	/**系统所有功能*/
	public static final String SOURCE_PERMISSION = "sourcePermission";
	/**系统登录用户id*/
	public static final String SYSTEM_LOGIN_USER_ID = "system_login_user_id";
	/** 系统登录用户*/
	public static final String SYSTEM_LOGIN_USER = "system_login_user_";
	
	/**超级管理员ID*/
	public static final String ADMIN_ID = "1";
	
	/** 页面返回结果状态 */
	public static final String RESULT_SCS = "success";
	public static final String RESULT_ERR = "error";
	public static final String RESULT_EXC = "exception";
	public static final String RESULT_VALID = "validates";
	public static final String RESULT_VALID_STR = "validate";
	public static final String RESULT_VALID_MSG = "输入数据验证失败！";
	public static final String RESULT_SCS_MSG = "操作成功！";
	public static final String RESULT_EXC_MSG = "操作异常！";
	public static final String RESULT_ERR_MSG = "操作错误！";
	public static final String RESULT_DEL_MSG = "删除成功！";
	
	/** 默认排序 */
	public static final String ORDER_BY_FIELD_PARAMS = "orderByField";//排序标识
	public static final String ORDER_BY_FIELD = "last_update_date";//排序列
	public static final String ORDER_BY_FIELD_CREATE = "create_date";//排序列
	public static final String ORDER_BY_FIELD_SORT = "sort";//排序列
	public static final String ORDER_BY_PARAMS = "orderBy";//排序方式标识
	public static final String ORDER_BY = "DESC";//排序方式
	
	/** 基础数据系统数据字典KEY*/
	public static final String PARTNER_ADDRESS_TYPE = "partner_address_type"; //合伙人获取地址树的行政级别
	public static final String BASEDATA_CARD_TYPE = "basedata_card_type"; //证件类型
	public static final String BASEDATA_JOB_STATUS = "basedata_job_status"; //岗位状态
	public static final String EMPLOYEE_JOB_TYPE = "employee_job_type"; //岗位
	
	/** 采购系统供应商据字典KEY*/
	public static final String VENDOR_COMPANY_NATURE = "vendor_company_nature"; //公司性质
	public static final String VENDOR_INVOICE_TYPE = "vendor_invoice_type"; //发票类型
	public static final String VENDOR_PAY_TYPE = "vendor_pay_type"; //支付方式
	public static final String VENDOR_PAY_TERMS = "vendor_pay_terms"; //付款条件  
	public static final String VENDOR_PURCHASE_TYPE = "purchase_pattern"; //采购类型
	
	/**
	 * 采购系统采购订单KEY
	 */
	public static final String PURCHASE_CLOSE_STATE = "purchase_close_state";//单据关闭状态
	public static final String PURCHASE_SKU_CLOSE_STATE = "purchase_sku_close_state";//单据商品关闭状态
	public static final String PURCHASE_SOURCE = "purchase_source";//单据来源
	public static final String PURCHASE_STATE = "purchase_state";//单据状态
	public static final String REFUND_STATUS = "refund_status";//退货状态
	public static final String REFUND_MODE = "refund_mode";//退货方式
	public static final String REFUND_TYPE = "refund_type";//退货类型
	public static final String SOURCE_TYPE = "source_type";//源单类型
	public static final String REPLEN_MODE = "replen_mode";//补货方式
	public static final String PURMS_PURCHASEORDERCHANGE_STATUS = "purms_purchaseOrderChange_status"; //变更类型  HK_AND_MACAO_IDCARDS
	
	/**
	 * 编码规则常量
	 */
	public static final String CODERULE_FIXED_VALUE = "coderule_fixed_value"; //固定值
	public static final String CODERULE_DATE_VALUE = "coderule_date_value"; //日期
	public static final String CODERULE_SEQUENCE_VALUE = "coderule_sequence_value"; //序列号
	public static final String CODERULE_RANDOM_VALUE = "coderule_random_value"; //随机数
	public static final String CODERULE_DATE_D1 = "yyyy-MM-dd";//编码规则组件使用日期规格2016-05-12
	public static final String CODERULE_DATE_D2 = "yyyyMMdd";//编码规则组件使用日期规格20160512
	public static final String CODERULE_DATE_D3 = "yyyy-MM";//编码规则组件使用日期规格2016-05
	public static final String CODERULE_DATE_D4 = "yyMMdd";//编码规则组件使用日期规格160512
	public static final String CODERULE_DATE_D5 = "yyyy";//编码规则组件使用日期规格2016
	public static final String CODERULE_DATE_D6 = "MMdd";//编码规则组件使用日期规格0512
	public static final String CODERULE_DATE_D7 = "SJC";//编码规则组件使用日期规格时间戳1461142838
	
	
}
